package com.dragon.modules.yuegou.query.busd;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.busd.PageConfigEntity;
import com.dragon.modules.yuegou.enums.busd.PageConfigPageType;
import com.dragon.modules.yuegou.enums.busd.PageConfigYsqAppType;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.time.LocalDateTime;

/**
 *  动态查询条件
 * 
 * @author pbuilder generated
 * @date 2020-12-24 16:32:56
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class PageConfigQuery extends PageConfigEntity implements Query<PageConfigEntity>{


    /** 查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 商圈ID查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** [枚举]页面类型：0-首页-HOME、1-秒杀活动-SECKILL、2-全民拼团-GROUP、3-限时折扣-LIMIT、4-疯狂砍价-BARGAINING、5-积分商城-POINTS_MALL、6-个人页-PERSONAL、7-签到领积分-SIGN查询条件 */
	@JsonUnwrapped(prefix = "pageType")
	private Condition<PageConfigPageType> pageTypeCondition;

    /** [枚举]类型：5-悦购小程序-YSQ_XCX、11-支付宝小程序-APL_XCX查询条件 */
	@JsonUnwrapped(prefix = "ysqAppType")
	private Condition<PageConfigYsqAppType> ysqAppTypeCondition;

    /** 页面样式类容查询条件 */
	@JsonUnwrapped(prefix = "styleContent")
	private Condition<String> styleContentCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "createdBy")
	private Condition<String> createdByCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "modifiedBy")
	private Condition<String> modifiedByCondition;

    /** 查询条件 */
	@JsonUnwrapped(prefix = "modifiedTime")
	private Condition<LocalDateTime> modifiedTimeCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public PageConfigQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public PageConfigQuery(PageConfigEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public PageConfigQuery(PageConfigQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if(other.pageTypeCondition != null) {
			this.pageTypeCondition = other.pageTypeCondition.copy();
		}
		if(other.ysqAppTypeCondition != null) {
			this.ysqAppTypeCondition = other.ysqAppTypeCondition.copy();
		}
		if(other.styleContentCondition != null) {
			this.styleContentCondition = other.styleContentCondition.copy();
		}
		if(other.createdByCondition != null) {
			this.createdByCondition = other.createdByCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.modifiedByCondition != null) {
			this.modifiedByCondition = other.modifiedByCondition.copy();
		}
		if(other.modifiedTimeCondition != null) {
			this.modifiedTimeCondition = other.modifiedTimeCondition.copy();
		}
	}

	@Override
	public QueryWrapper<PageConfigEntity> toQueryWrapper() {
		QueryWrapper<PageConfigEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (pageTypeCondition != null) {
			pageTypeCondition.toWrapper(wrapper, COL_PAGE_TYPE);
		}
		if (ysqAppTypeCondition != null) {
			ysqAppTypeCondition.toWrapper(wrapper, COL_YSQ_APP_TYPE);
		}
		if (styleContentCondition != null) {
			styleContentCondition.toWrapper(wrapper, COL_STYLE_CONTENT);
		}
		if (createdByCondition != null) {
			createdByCondition.toWrapper(wrapper, COL_CREATED_BY);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (modifiedByCondition != null) {
			modifiedByCondition.toWrapper(wrapper, COL_MODIFIED_BY);
		}
		if (modifiedTimeCondition != null) {
			modifiedTimeCondition.toWrapper(wrapper, COL_MODIFIED_TIME);
		}
		return wrapper;
	}

	
	/**
	 * 构造并返回查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param idCondition 查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取商圈ID查询条件
	 * 
	 * @return busdIdCondition 商圈ID查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置商圈ID查询条件
	 * 
	 * @param busdIdCondition 商圈ID查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回[枚举]页面类型：0-首页-HOME、1-秒杀活动-SECKILL、2-全民拼团-GROUP、3-限时折扣-LIMIT、4-疯狂砍价-BARGAINING、5-积分商城-POINTS_MALL、6-个人页-PERSONAL、7-签到领积分-SIGN查询条件
	 * 
	 * @return pageTypeCondition [枚举]页面类型：0-首页-HOME、1-秒杀活动-SECKILL、2-全民拼团-GROUP、3-限时折扣-LIMIT、4-疯狂砍价-BARGAINING、5-积分商城-POINTS_MALL、6-个人页-PERSONAL、7-签到领积分-SIGN查询条件
	 */
	public Condition<PageConfigPageType> pageType() {
		this.pageTypeCondition = new Condition<>();
		return this.pageTypeCondition;
	}
	
	/**
	 * 获取[枚举]页面类型：0-首页-HOME、1-秒杀活动-SECKILL、2-全民拼团-GROUP、3-限时折扣-LIMIT、4-疯狂砍价-BARGAINING、5-积分商城-POINTS_MALL、6-个人页-PERSONAL、7-签到领积分-SIGN查询条件
	 * 
	 * @return pageTypeCondition [枚举]页面类型：0-首页-HOME、1-秒杀活动-SECKILL、2-全民拼团-GROUP、3-限时折扣-LIMIT、4-疯狂砍价-BARGAINING、5-积分商城-POINTS_MALL、6-个人页-PERSONAL、7-签到领积分-SIGN查询条件
	 */
	public Condition<PageConfigPageType> getPageTypeCondition() {
		return pageTypeCondition;
	}

	/**
	 * 设置[枚举]页面类型：0-首页-HOME、1-秒杀活动-SECKILL、2-全民拼团-GROUP、3-限时折扣-LIMIT、4-疯狂砍价-BARGAINING、5-积分商城-POINTS_MALL、6-个人页-PERSONAL、7-签到领积分-SIGN查询条件
	 * 
	 * @param pageTypeCondition [枚举]页面类型：0-首页-HOME、1-秒杀活动-SECKILL、2-全民拼团-GROUP、3-限时折扣-LIMIT、4-疯狂砍价-BARGAINING、5-积分商城-POINTS_MALL、6-个人页-PERSONAL、7-签到领积分-SIGN查询条件
	 */
	public void setPageTypeCondition(Condition<PageConfigPageType> pageTypeCondition) {
		this.pageTypeCondition = pageTypeCondition;
	}

	/**
	 * 构造并返回[枚举]类型：5-悦购小程序-YSQ_XCX、11-支付宝小程序-APL_XCX查询条件
	 * 
	 * @return ysqAppTypeCondition [枚举]类型：5-悦购小程序-YSQ_XCX、11-支付宝小程序-APL_XCX查询条件
	 */
	public Condition<PageConfigYsqAppType> ysqAppType() {
		this.ysqAppTypeCondition = new Condition<>();
		return this.ysqAppTypeCondition;
	}
	
	/**
	 * 获取[枚举]类型：5-悦购小程序-YSQ_XCX、11-支付宝小程序-APL_XCX查询条件
	 * 
	 * @return ysqAppTypeCondition [枚举]类型：5-悦购小程序-YSQ_XCX、11-支付宝小程序-APL_XCX查询条件
	 */
	public Condition<PageConfigYsqAppType> getYsqAppTypeCondition() {
		return ysqAppTypeCondition;
	}

	/**
	 * 设置[枚举]类型：5-悦购小程序-YSQ_XCX、11-支付宝小程序-APL_XCX查询条件
	 * 
	 * @param ysqAppTypeCondition [枚举]类型：5-悦购小程序-YSQ_XCX、11-支付宝小程序-APL_XCX查询条件
	 */
	public void setYsqAppTypeCondition(Condition<PageConfigYsqAppType> ysqAppTypeCondition) {
		this.ysqAppTypeCondition = ysqAppTypeCondition;
	}

	/**
	 * 构造并返回页面样式类容查询条件
	 * 
	 * @return styleContentCondition 页面样式类容查询条件
	 */
	public Condition<String> styleContent() {
		this.styleContentCondition = new Condition<>();
		return this.styleContentCondition;
	}
	
	/**
	 * 获取页面样式类容查询条件
	 * 
	 * @return styleContentCondition 页面样式类容查询条件
	 */
	public Condition<String> getStyleContentCondition() {
		return styleContentCondition;
	}

	/**
	 * 设置页面样式类容查询条件
	 * 
	 * @param styleContentCondition 页面样式类容查询条件
	 */
	public void setStyleContentCondition(Condition<String> styleContentCondition) {
		this.styleContentCondition = styleContentCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return createdByCondition 查询条件
	 */
	public Condition<String> createdBy() {
		this.createdByCondition = new Condition<>();
		return this.createdByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return createdByCondition 查询条件
	 */
	public Condition<String> getCreatedByCondition() {
		return createdByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param createdByCondition 查询条件
	 */
	public void setCreatedByCondition(Condition<String> createdByCondition) {
		this.createdByCondition = createdByCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return createdTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return createdTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param createdTimeCondition 查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return modifiedByCondition 查询条件
	 */
	public Condition<String> modifiedBy() {
		this.modifiedByCondition = new Condition<>();
		return this.modifiedByCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return modifiedByCondition 查询条件
	 */
	public Condition<String> getModifiedByCondition() {
		return modifiedByCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param modifiedByCondition 查询条件
	 */
	public void setModifiedByCondition(Condition<String> modifiedByCondition) {
		this.modifiedByCondition = modifiedByCondition;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return modifiedTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> modifiedTime() {
		this.modifiedTimeCondition = new Condition<>();
		return this.modifiedTimeCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return modifiedTimeCondition 查询条件
	 */
	public Condition<LocalDateTime> getModifiedTimeCondition() {
		return modifiedTimeCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param modifiedTimeCondition 查询条件
	 */
	public void setModifiedTimeCondition(Condition<LocalDateTime> modifiedTimeCondition) {
		this.modifiedTimeCondition = modifiedTimeCondition;
	}

}
